package org.inspursc.s0517.health.evaluation.entity;

import lombok.Data;
import org.hibernate.annotations.DynamicUpdate;
import org.inspursc.s0517.health.common.entity.AbstractIdEntity;

import javax.persistence.*;
import java.util.Date;

/**
 * @author B_Dream
 * @date 2018/6/6 9:10
 */
@Data
@Entity(name = "t_health_result")
@DynamicUpdate
public class SurveyAnswer extends AbstractIdEntity {

    /**
     * 被评估人Id
     */
    @Column(name = "personnel_id")
    private Integer personnelId;

    /**
     * 组织机构id
     */
    @Column(name = "organization_id")
    private Integer organizationId;

    /**
     * 评估师系统账户id
     */
    @Column(name = "appraiser_id")
    private Integer appraiserId;

    /**
     * 问卷Id
     */
    @Column(name = "survey_id")
    private Integer surveyId;

    /**
     * 问卷名字
     */
    @Column(name="survey_name")
    private String surveyName;

    /**
     * 时间
     */
    @Column(name = "date_time")
    private Date dateTime;

    /**
     * 总分值
     */
    @Column(name = "total_score")
    private Integer totalScore;

    /**
     * 评测结论
     */
    @Column(name = "description")
    private String description;


    /**
     *  保养建议（2018-6-26新增）
     */
    private String suggestion;

    /**
     * Json
     */
    @Column(name = "kpi")
    private String kpi;

    /**
     * 自动计算
     */
    @Column(name = "anto_compute_json")
    private String antoComputeJson;


}
